<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system/"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>美瀛商旅网</title>
<link href="${ctxPath}/resource/front/css/body.css" rel="stylesheet" type="text/css" />
<link href="${ctxPath}/resource/front/css/order_ticket.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function checkSelect(){
	var checks=$('input[name="passengerIds"]:checked');
	if(checks.length<1){
		alert("请选择要改签的旅客!");
		return false;
	}
}
</script>
</head>
<body>
<div id="col" style="width:1000px;margin:0px auto;">
<div id="left">
	<system:frontLeft/>
</div>
<div id="right">
	<form action="${ctxPath}/front/index.do" name="searchForm" method="post" onsubmit="return checkSelect();">
	<input type="hidden" name="id" value="${bOrder.id}"/>
	<input type="hidden" name="cmd" value="doUpdate"/>
	<input type="hidden" name="actionType" value="${actionType}"/>
	<div id="ticket_list">
	<ul class="ticket_list_title" style="font-size:14px ">
	<font color="#798DAE">&gt;&gt;&nbsp;美瀛机票订单查询</font>&nbsp;&nbsp;<a href="javascript:history.back()"><img src="${ctxPath}/image/public/backtrack.gif" align="absmiddle"/>[返回]</a>
    </ul>
	<div id="check_see">
<div id="check_top">
    <div id="content_c">
    <li class="w100">订单号：<strong>${bOrder.orderNo }</strong></li>
   <li class="w100">未支付金额：<strong style="color:#F36">¥${bOrder.noPay }</strong></li>
   <li class="w100">订单状态：
   <strong>
		<fmt:message key="bOrder.status${bOrder.status }"></fmt:message>
   </strong>
    </li>
    <div id="clear"></div>
    </div>
</div>
	<div id="check_flight">
    	<div id="title_c">
            <li class="f140">航空公司</li>
        	<li class="f40">航班号</li>
            <li class="f30">舱位</li>
            <li class="f30">机型</li>
            <li class="f100">航班时间</li>
            <li class="f100">起降机场</li>
            <li class="f80">里程</li>
            <li class="f60">飞行时间</li>
            <li class="f30">经停</li>
            <div id="clear"></div>
     	</div>
     	
     	
     	<c:if test="${not empty bOrder.flights}">
			<c:forEach var="flight" items="${bOrder.flights}" >
				<div id="content_c">
		            <li class="fc140"><img src="${ctxPath}/resource/front/image/international_ticket/${fn:substring(flight.code,0,2)}.gif" />${flight.flightName}</li>
		            <li class="fc50">${flight.code}</li>
		            <li class="fc30">${flight.cabin}</li>
		            <li class="fc30">--</li>
		            <li class="fc100">${flight.depDay}<br /><span>${flight.depTime}-${flight.arrTime}</span></li>
		            <li class="fc120">${flight.boardPointName}<br />${flight.offPointName}</li>
		            <li class="fc60">${flight.mileage}公里</li>
		            <li class="fc60">${flight.flightTime}</li>
		            <li class="fc30">${flight.stop}</li>
		            <div id="clear"></div>
		        </div>
			</c:forEach>
		</c:if>&nbsp;
        
    </div>
	
    <div id="check_msg">
		<div id="title_c">
            <li class="f80">旅客类型</li>
            <li class="f60">价格</li>
            <li class="f40">退改签</li>
            <li class="f40">机建</li>
            <li class="f40">燃油</li>
            <li class="f40">人数</li>
            <li class="f40">保险</li>
            <li class="f100">保险份数</li>
            <li class="f60">合计</li>
            <li class="f40">快递</li>
            <li class="f60">总价</li>
            <div id="clear"></div>
     	</div>
     	<c:forEach var="passengerDto" items="${passengerDtos}" varStatus="item">
           <div id="content_c">
            <li class="fc80"><fmt:message key="passenger.ageType${passengerDto.passengerType}"></fmt:message></li>
            <li class="fc60"><span>￥<fmt:parseNumber value="${passengerDto.viewPrice}"></fmt:parseNumber></span></li>
            <li class="fc40"><span style="cursor:pointer" title="更改条件:需每次收取票面价10%的改签费<br>退票条件:需收取票面价20%的退票费<br>签转条件:不允许签转">退改签</span></li>
            <li class="fc40"><span>￥<fmt:parseNumber value="${passengerDto.constructionFee}"></fmt:parseNumber></span></li>
            <li class="fc40"><span>￥<fmt:parseNumber value="${passengerDto.fuelTax}"></fmt:parseNumber></span></li>
            <li class="fc40"><span>${passengerDto.passengerCount}</span></li>
            <li class="fc40"><span>￥<fmt:parseNumber value="${passengerDto.bxPrice}"></fmt:parseNumber></span></li>
            <li class="fc100"><span><fmt:parseNumber value="${passengerDto.bxCount}"/></span></li>
            <li class="fc60"><span>￥<fmt:parseNumber value="${passengerDto.totalPrice}"/></span></li>
            <li class="fc40">
            <c:if test="${fn:length(passengerDtos)==item.count}">
            <span>${bOrder.xcdPrice}
            </span>
            </c:if>
            </li>
            <li class="fc60"><span style="color:#F36">￥<fmt:parseNumber value="${passengerDto.totalPrice}"/></span></li>
            <div id="clear"></div>
       	</div>
       	</c:forEach>

    </div>
    
    	<div id="check_guest">
            	<div id="title_c">
                <li>改签登机人姓名<span class="gray">请勾选需要改签登机人姓名，进行改签申请。</span></li>
                </div>
                <div id="content_c">
                <ul>
                 <c:forEach var="passenger" items="${bOrder.passengers}">
                <li class="w100"> <input name="passengerIds"  type="checkbox" value="${passenger.id}" />${passenger.name}</li>
                <div id="clear"></div>
                  </c:forEach>
                </ul>
                </div>
            </div>
            
            	<div id="check_linkman">
                    <div id="title_c">
                    <li>改签原因：</li>
                    </div>
                    <div id="content_c">
                    <li class="w100">预留手机：<span>${bOrder.contactMob}</span></li>
                    <li class="w100">改签原因：<textarea class="txtt" name="description" cols="80" rows="5"></textarea></li>
                    <div id="clear"></div>
                    </div>
                </div>
                
                <div id="check_bx">
                    <div id="title_c">
                    <li>改签信息：</li>
                    </div>
                    <div id="content_c">
                    <c:if test="${not empty bOrder.policy}">${bOrder.policy.backNote }</c:if>
                    <c:if test="${empty bOrder.policy}">
                    <li class="w100">改签须知</li>
                    <li class="w100">更改条件：需每次收取票面价20%的改签费</li>
                    <li class="w100">退票条件：需收取票面价50%的退票费</li>
                    <li class="w100">签转条件：不允许签转</li>
                    <li class="w100"><span class="red">退改签规定以航空公司最新规定为准</span></li>
                    </c:if>
                    <div id="clear"></div>
                    </div>
                </div>
                <input name="Submit" type="submit" class="" style="margin-left:250px"  value="提交" />
   			
            <!-- <input name="Submit" type="button" onclick="javascript:history.back();" class="inputsubmit" style="margin-left:50px" value="返回" /> -->
                
</div>
</div>
</form>
</div>
</div>
</body>
</html>

